using System.Collections.Generic;
using System.Xml.Serialization;

namespace GirLoader.Input;

public class Bitfield
{
    [XmlAttribute("name")]
    public string? Name { get; set; }

    [XmlAttribute("type", Namespace = "http://www.gtk.org/introspection/c/1.0")]
    public string? Type { get; set; }

    [XmlAttribute("type-name", Namespace = "http://www.gtk.org/introspection/glib/1.0")]
    public string? TypeName { get; set; }

    [XmlElement("doc")]
    public Doc? Doc { get; set; }

    [XmlElement("member")]
    public List<Member> Members { get; set; } = default!;

    [XmlAttribute("introspectable")]
    public bool Introspectable = true;
}
